mt8173: Move SPM related PLL settings to ARM TF
authorJimmy Huang <[email protected]>
Mon, 16 Nov 2015 06:26:14 +0000 (14:26 +0800)
committerYidi Lin <[email protected]>
Tue, 26 Jan 2016 05:55:11 +0000 (13:55 +0800)
Move SPM related PLL settings to spm_boot_init in ARM TF SPM driver

Change-Id: I414b896caae072570c8de33a25e06db4ae011f57
Signed-off-by: yt.lee <[email protected]>
plat/mediatek/mt8173/drivers/spm/spm.c
plat/mediatek/mt8173/drivers/spm/spm.h

index 280192568055e7c89f199e308bdbc5182cbd0579..45defd8aa1e21080878db406ab452a2a146da5ed 100644 (file)
@@ -386,6 +386,8 @@ void spm_boot_init(void)
 {
        /* Only CPU0 is online during boot, initialize cpu online reserve bit */
        mmio_write_32(SPM_PCM_RESERVE, 0xFE);
+       mmio_clrbits_32(AP_PLL_CON3, 0xFFFFF);
+       mmio_clrbits_32(AP_PLL_CON4, 0xF);
        spm_lock_init();
        spm_register_init();
 }
index f1e767457969827040462653bdb93055e5ee0fd6..4e78c727709ac5b3c0b5af8b31401a2e92954b1d 100644 (file)
 #define SPM_SLEEP_CA15_WFI2_EN                 (SPM_BASE + 0xf18)
 #define SPM_SLEEP_CA15_WFI3_EN                 (SPM_BASE + 0xf1c)
 
+#define AP_PLL_CON3            0x1020900c
+#define AP_PLL_CON4            0x10209010
+
 #define SPM_PROJECT_CODE       0xb16
 
 #define SPM_REGWR_EN           (1U << 0)